package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sl.au.entity.Root;

@Entity
@Table(name = "sl_dcms_hierarchy")
public class Hierarchy extends Root{

	@Column(nullable = true)
	private String groupName;//组织名称
	
	@Column(nullable = true)
	private String groupIdentify;//组织编码
	
	@Column(nullable = true)
	private int groupOrder;//组织顺序

	@Column(nullable = true)
	private String groupParent;//父级组织
	
	@Column(nullable = true)
	private String groupTelphone;//组织电话
	
	@Column(nullable = true)
	private float groupScore;//组织基本考评分数
	
	@Column(nullable = true)
	private float groupScoreWeight;//组织基本考评权重
	
	@ManyToOne
	@JoinColumn(name = "groupLevel_id",nullable = true)
	private Option groupLevel;//组织层级
	
	@Column(name = "iconAddress", nullable = true)
	private String iconAddress;//图标地址

	@Column(name = "memo", nullable = true)
	private String memo;//备注
	
	/*******  用于判断是否需要当前编码  ******/
	// 人员
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean userShow = true;
	// 部件
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean partShow = true;
	// 网格
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean gridShow = true;
	// 事件
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean eventShow = true;
	
	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getGroupIdentify() {
		return groupIdentify;
	}

	public void setGroupIdentify(String groupIdentify) {
		this.groupIdentify = groupIdentify;
	}

	public int getGroupOrder() {
		return groupOrder;
	}

	public void setGroupOrder(int groupOrder) {
		this.groupOrder = groupOrder;
	}

	public String getGroupParent() {
		return groupParent;
	}

	public void setGroupParent(String groupParent) {
		this.groupParent = groupParent;
	}

	public String getGroupTelphone() {
		return groupTelphone;
	}

	public void setGroupTelphone(String groupTelphone) {
		this.groupTelphone = groupTelphone;
	}

	public float getGroupScore() {
		return groupScore;
	}

	public void setGroupScore(float groupScore) {
		this.groupScore = groupScore;
	}

	public float getGroupScoreWeight() {
		return groupScoreWeight;
	}

	public void setGroupScoreWeight(float groupScoreWeight) {
		this.groupScoreWeight = groupScoreWeight;
	}

	public Option getGroupLevel() {
		return groupLevel;
	}

	public void setGroupLevel(Option groupLevel) {
		this.groupLevel = groupLevel;
	}

	public String getIconAddress() {
		return iconAddress;
	}

	public void setIconAddress(String iconAddress) {
		this.iconAddress = iconAddress;
	}

	public boolean isUserShow() {
		return userShow;
	}

	public void setUserShow(boolean userShow) {
		this.userShow = userShow;
	}

	public boolean isPartShow() {
		return partShow;
	}

	public void setPartShow(boolean partShow) {
		this.partShow = partShow;
	}

	public boolean isGridShow() {
		return gridShow;
	}

	public void setGridShow(boolean gridShow) {
		this.gridShow = gridShow;
	}

	public boolean isEventShow() {
		return eventShow;
	}

	public void setEventShow(boolean eventShow) {
		this.eventShow = eventShow;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
}
